<script setup lang="ts">
</script>
<template>
    <div class="page">
        <div class="list">

            <div v-for="i in 10" :key="i" class="item">
                <div class="unused">
                    <div class="unused-2">
                        <div class="title">商品title{{ i }}</div>
                        <div class="content">
                            <div class="desc">商品内容{{ i }}</div>
                        </div>
                    </div>
                </div>
                <!--  <div class="title">商品title{{ i }}</div>
                <div class="content">
                    <div class="desc">商品内容{{ i }}</div>
                   
                </div> -->
            </div>
        </div>

    </div>
</template>
<style lang="scss">
.page {
    padding: 20px;

    .list {
        height: 500px;
        overflow: auto;
        position: relative;

        .title {
            position: sticky;
            top: 0;
            background-color: pink;

        }

        .content {
            background-color: lightblue;

            .desc {
                height: 200px;
            }
        }
    }
}
</style>